package com.ruoyi.workbenches.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.workbenches.mapper.ManualRecordMapper;
import com.ruoyi.workbenches.domain.ManualRecord;
import com.ruoyi.workbenches.service.IManualRecordService;

/**
 * 接待登记Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-03-20
 */
@Service
public class ManualRecordServiceImpl implements IManualRecordService 
{
    @Autowired
    private ManualRecordMapper manualRecordMapper;

    /**
     * 查询接待登记
     * 
     * @param manualRecordId 接待登记主键
     * @return 接待登记
     */
    @Override
    public ManualRecord selectManualRecordByManualRecordId(Long manualRecordId)
    {
        return manualRecordMapper.selectManualRecordByManualRecordId(manualRecordId);
    }

    /**
     * 查询接待登记列表
     * 
     * @param manualRecord 接待登记
     * @return 接待登记
     */
    @Override
    public List<ManualRecord> selectManualRecordList(ManualRecord manualRecord)
    {
        return manualRecordMapper.selectManualRecordList(manualRecord);
    }

    /**
     * 新增接待登记
     * 
     * @param manualRecord 接待登记
     * @return 结果
     */
    @Override
    public int insertManualRecord(ManualRecord manualRecord)
    {
        return manualRecordMapper.insertManualRecord(manualRecord);
    }

    /**
     * 修改接待登记
     * 
     * @param manualRecord 接待登记
     * @return 结果
     */
    @Override
    public int updateManualRecord(ManualRecord manualRecord)
    {
        return manualRecordMapper.updateManualRecord(manualRecord);
    }

    /**
     * 批量删除接待登记
     * 
     * @param manualRecordIds 需要删除的接待登记主键
     * @return 结果
     */
    @Override
    public int deleteManualRecordByManualRecordIds(Long[] manualRecordIds)
    {
        return manualRecordMapper.deleteManualRecordByManualRecordIds(manualRecordIds);
    }

    /**
     * 删除接待登记信息
     * 
     * @param manualRecordId 接待登记主键
     * @return 结果
     */
    @Override
    public int deleteManualRecordByManualRecordId(Long manualRecordId)
    {
        return manualRecordMapper.deleteManualRecordByManualRecordId(manualRecordId);
    }
}
